﻿<%@ WebHandler Language="C#" Class="ListCategoryNews" %>

using System;
using System.Web;
using System.Text;
using System.Data;
using HNG.Portal.BLL;
using HNG.Portal.DAL;
using HNG.Portal.DAL.EntityClasses;
using HNG.Portal.DAL.FactoryClasses;
using HNG.Portal.DAL.HelperClasses;
using SD.LLBLGen.Pro.ORMSupportClasses;
public class ListCategoryNews : IHttpHandler
{
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/javascript";
        StringBuilder sb = new StringBuilder();
        DataTable _dt = (new TblDanhMucTinManager()).be_SelectToDataList(new TblDanhMucTinEntity());
        if(_dt!=null)
            sb.Append(HNG.LIB.Ajax.JSONHelper.FromDataTable(_dt));
        
        context.Response.Write(sb.ToString());
    }
 
    public bool IsReusable {
        get {
            return false;
        }
    }    
}